home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / pbaseiv.zip / P4MSC001.TIP < prev    next >
Text File  |  1991-12-16  |  2KB  |  72 lines

  1. The standard HP LaserJet character set doesn't include
  2. extended ASCII characters. When printing screen dumps or
  3. anything from a program without a good LaserJet driver, you
  4. end up with a bunch of foreign-accented characters where
  5. your lines and boxes should be.
  6.  
  7. To prevent these accidental accents from appearing when you
  8. print, I created two data files, HPLJFONT.STD and
  9. HPLJFONT.EXT, that contain the codes for selecting standard
  10. and extended character sets. At the DOS prompt, type "COPY
  11. HPLJFONT.EXT PRN" to get the extended characters. Copy
  12. HPLJFONT.STD to the printer for the LaserJet's defaults.
  13.  
  14. J. L. Richards
  15. Richmond, British Columbia, Canada
  16.  
  17. Editor's note: HPLJFONT.STD and HPLJFONT.EXT are both
  18. included on your PowerBase *.* Volume IV diskette in the
  19. P4UTIL directory. Copy the two files to any directory, for
  20. example, c:\util. Using these files will be simpler if you
  21. create two one-line batch files, HPEXT.BAT and HPSTD.BAT,
  22. and put them in a directory listed in your PATH command. The
  23. contents of these one-line batches should be
  24.  
  25. COPY C:\UTIL\HPLJFONT.EXT PRN:
  26.  
  27. and
  28.  
  29. COPY C:\UTIL\HPLJFONT.STD PRN:
  30.  
  31. respectively.
  32.  
  33. For a more complete solution, HPPR.BAT (see listing) turns
  34. on the extended characters, prints up to nine ASCII files,
  35. then returns to the printer's defaults. When creating
  36. HPPR.BAT, replace the path `c:\util\' on lines 3 and 5 with
  37. the actual path to the directory holding HPLJFONT.STD and
  38. HPLJFONT.EXT. Also, make sure the DOS PRINT.COM utility is
  39. stored in a directory listed in the current PATH. Then type
  40. "HPPR <file1> <file2>...<filen>" to print your file or
  41. files.
  42.  
  43. Postscript: While these two solutions reconfigure your laser
  44. printer temporarily, there's another technique you can use
  45. to solve the problem once and for all: make the changes
  46. permanent via the printer's control panel. For step-by-step
  47. instructions on how to do it, see the tip "IBM-Compatible
  48. LaserJet Fonts" on the same menu as this one.
  49.  
  50. HPPR.BAT (Use Alt-F to extract)
  51.  
  52. ---- BEGIN LISTING ----
  53. @echo off
  54. if "%1"=="" goto HELP
  55. copy c:\util\hpljfont.ext prn:
  56. print %1,%2,%3,%4,%5,%6,%7,%8,%9
  57. copy c:\util\hpljfont.std prn:
  58. goto END
  59. :HELP
  60. echo Enter PRHP file1 file2...
  61. echo to print files using
  62. echo extended ASCII characters
  63. :END
  64. ---- END LISTING ----
  65.  
  66. Title: Accidental Accents
  67. Category: MSC
  68. Issue date: Jan 1991
  69. Editor: Tom Swan
  70. Supplementary files: P4UTIL\HPLJFONT.EXT,
  71.                      P4UTIL\HPLJFONT.STD
  72.